<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<link href="stylesheets/style.css" rel="stylesheet" type="text/css"/>
<link href="stylesheets/winter.css" rel="stylesheet" type="text/css" />


<!-- Loading Calendar JavaScript files -->
    <script type="text/javascript" src="js/zapatec.js"></script>
    <script type="text/javascript" src="js/calendar.js"></script>
<!-- Loading language definition file -->
    <script type="text/javascript" src="js/calendar-en.js"></script>
<div id="joint_c1">
<div id="listline_r"><div id="line_list"><span class="bx_tit"><img src="images/icon_6.gif" align="absmiddle" style="padding:0px 5px" />Send Obituary</span></div></div>

<form:form modelAttribute="obituary" action="obituaryEntry.html" enctype="multipart/form-data"	>
<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1">Name : *</div>
<div id="nwuser_c2">
		<form:input path="name" size="30" cssErrorClass="form-error-field" />
		<div class="form-error-message"><form:errors path="name" /></div>
</div>
</div>

<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1">Age: *</div>
<div id="nwuser_c2">
		<form:input path="age" size="3" cssErrorClass="form-error-field"/>
		<div class="form-error-message"><form:errors path="age" /></div>	
</div>
</div>


<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1">Date of Death</div>
<div id="nwuser_c2">
		<form:input path="dateOfDeath" size="10" cssErrorClass="form-error-field"/>
		<input value="Select Date" id="trigger" type="button"/>
		<div class="form-error-message"><form:errors path="dateOfDeath" /></div>
</div>
</div>

<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1">Update the photo/image : *</div>
<div id="nwuser_c2">
		<input type="file" name="multipartFile" cssErrorClass="form-error-field"/>
		<div class="form-error-message"><form:errors path="multipartFile" /></div>
</div>
</div>


<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1">Funeral Details</div>
<div id="nwuser_c2">
		<form:textarea  path="funeralDetails" cols="40" rows="4" cssErrorClass="form-error-field"></form:textarea>
		<div class="form-error-message"><form:errors path="funeralDetails" /></div>
</div>
</div>


<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1"> Contact Details </div>
<div id="nwuser_c2">
		<form:textarea  path="contactDetails" cols="40" rows="4" cssErrorClass="form-error-field"></form:textarea>
		<div class="form-error-message"><form:errors path="contactDetails" /></div>
</div>
</div>


<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1">Parent Name : *</div>
<div id="nwuser_c2">
		<form:input path="parentName" size="30" cssErrorClass="form-error-field"/>
		<div class="form-error-message"><form:errors path="parentName" /></div>
</div>
</div>


<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1">Family Members Names : </div>
<div id="nwuser_c2">
		<form:input path="familyMembersNames" size="30" cssErrorClass="form-error-field"/>
		<div class="form-error-message"><form:errors path="familyMembersNames" /></div>
</div>
</div>

<div id="nwusesr_r">
<div class="user_txt" id="nwuser_c1">Native Place : </div>
<div id="nwuser_c2">
		<form:input path="nativePlace" size="30" cssErrorClass="form-error-field"/>
		<div class="form-error-message"><form:errors path="nativePlace" /></div>
</div>
</div>

<div id="nwusesr_r">
  <div align="center">
  <INPUT onclick="return validate_frm()" type=image src="images/submit.gif" width="98" height="31" border="0" > 
  </div>
</div>

			    <script type="text/javascript">//<![CDATA[
			      Zapatec.Calendar.setup({
			        firstDay          : 1,
			        electric          : false,
			        inputField        : "dateOfDeath",
			        button            : "trigger",
			        ifFormat          : "%d/%m/%Y",
			        daFormat          : "%d/%m/%Y"
			        
			      });
			    //]]></script>
						    
						    
</form:form>

</div>
						
